<template>
  <div class="home">
    <div class="van-search">
      <router-link class="btn" to="/city">上海</router-link>
      <input class="ipt" type="text" placeholder="请输入校区或地址" />
      <van-icon name="location-o" size="25" />
    </div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item><img src="../assets/1.png" alt="" /></van-swipe-item>
      <van-swipe-item><img src="../assets/2.png" alt="" /></van-swipe-item>
      <van-swipe-item><img src="../assets/3.png" alt="" /></van-swipe-item>
    </van-swipe>
    <!-- 列表 -->
    <div class="list">
      <router-link to="/login">
        <div class="pic">
          <img src="../assets/下载 (1).png" alt="" />
          <p>整租</p>
        </div>
      </router-link>
      <router-link to="/login">
        <div class="pic">
          <img src="../assets/下载 (2).png" alt="" />
          <p>合租</p>
        </div>
      </router-link>
      <router-link to="/login">
        <div class="pic">
          <img src="../assets/下载 (3).png" alt="" />
          <p>地图找房</p>
        </div>
      </router-link>

      <router-link to="/login">
        <div class="pic">
          <img src="../assets/下载.png" alt="" />
          <p>去出租</p>
        </div>
      </router-link>
    </div>
    <div class="group">
      <p>租房小组</p>
      <a href=" ">更多</a>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  props: {},
  components: {},
  data () {
    return {
      imgs: {},
      group: [],
      active: 'home'
    }
  }
}
</script>
<style lang="less" scoped>
.home {
  position: relative;
  .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
  }
  img {
    width: 100%;
  }
  .list {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    .pic {
      margin-left: 27px;
      p {
        font-size: 14px;
        margin-top: 3px;
        color: #333;
      }
      img {
        width: 60px;
        height: 60px;
      }
    }
  }
  .group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px;

    a {
      color: #ccc;
    }
    p {
      font-size: 15px;
      font-weight: 700;
    }
  }
  .van-search {
    position: fixed;
    top: 20px;
    z-index: 999;
    transform: translateX(20px);
    width: 300px;

    border-radius: 5px;
    .van-icon {
      position: absolute;
      transform: translate(305px);
      color: #fff;
    }
    .btn {
      height: 70%;
      font-size: 14px;
      width: 60px;
      border-radius: 3px;
      color: #333;
      background-color: white;
      border: 1px solid #fff;
      border-right: 1px solid #999999;
    }
    .ipt {
      margin-left: 10px;
      height: 90%;
      border: 1px solid #fff;
      font-size: 12px;
      color: #999999;
    }
  }
}
</style>
